package com.website.at.fw.dao;

import java.util.List;

/**
 * 
 * @author kongld
 * 
 */
public interface IQueryDao {

	/**
	 * 
	 * @param <E>
	 * @param sqlID
	 * @param bindParams
	 * @param clazz
	 * @return
	 */
	@SuppressWarnings("rawtypes")
	<E> E executeForObject(String sqlID, Object bindParams, Class clazz);


	/**
	 * 
	 * @param <E>
	 * @param sqlID
	 * @param bindParams
	 * @return
	 */
	<E> List<E> executeForObjectList(String sqlID, Object bindParams);


	/**
	 * 
	 * @param <E>
	 * @param sqlID
	 * @param bindParams
	 * @param beginIndex
	 * @param maxCount
	 * @return
	 */
	<E> List<E> executeForObjectList(String sqlID, Object bindParams, int beginIndex, int maxCount);
}
